package com.ssd.api.couponAndIntegral.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.math.BigDecimal;

@Data
@ApiModel("优惠券使用模型")
public class CouponUseReqDTO {
    @ApiModelProperty("优惠券id")
    @Null(message = "优惠券id为空，请输入优惠券id")
    private Long id;
    @ApiModelProperty("订单id")
    @Null(message = "订单id，请输入订单id")
    private Long ordersId;
    @ApiModelProperty("总金额")
    @Null(message = "总金额为空，请输入总金额")
    private BigDecimal totalAmount;
}
